<!DOCTYPE html>
<html lang="en">
 <head>
    <meta charset="UTF-8">
    <title>Document</title>
 </head>
<body>
    <script src="../vue_base/js/vue.js"></script>

    <div id="app">
        <p>_data.content:{{ _data.content }}</p>
        <p>test():{{ test() }}</p>
        <p>test2():{{ test2() }}</p>
    </div>

    <script>
        const vue = new Vue({
            // el:'#app',
            data:{
                content:'hello'
            }
        })
        console.log(vue);
        console.log(vue._uid);

        vue.test = () => {
            console.log('vue.test()');
            return 'vue._proto_的test方法返回值'
        }

        vue.__proto__.test2 = () =>{
            return'vue._proto_的test方法返回值'
        }

        vue.$mount('#app')


        console.log(vue.content);

        const myVue = {
            _data:{
                msg:'abc'
            }
        }
        console.log(myVue._data);
        Object.defineProperty(myVue,'msg',{
            get(){
                return this._data['msg']
            },
            set(value){
                this._data['msg'] = value
            }
        })

        console.log(myVue.msg);
        myVue.msg = 'cba'
        console.log(myVue.msg);
    </script>

</body>
</html>